import axios from 'axios'
export function request(config) {
    const instance = axios.create({
        baseURL: "http://127.0.0.1",
        timeout: 5000
    })

    instance.interceptors.request.use(req => {
        return req
    }, err => {
        return req
    })
    instance.interceptors.response.use(res => {
        return res.data
    }, err => {
        return req
    })


    return instance(config)
}
